<!doctype html>
<html class="no-js" lang="">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title>YDZK</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">

		<!-- CSS here -->
        <link rel="stylesheet" href="static/css/bootstrap.min.css">
        <link rel="stylesheet" href="static/css/animate.min.css">
        <link rel="stylesheet" href="static/css/magnific-popup.css">
        <link rel="stylesheet" href="static/css/fontawesome-all.min.css">
        <link rel="stylesheet" href="static/css/owl.carousel.min.css">
        <link rel="stylesheet" href="static/css/jquery-ui.min.css">
        <link rel="stylesheet" href="static/css/flaticon.css">
        <link rel="stylesheet" href="static/css/odometer.css">
        <link rel="stylesheet" href="static/css/aos.css">
        <link rel="stylesheet" href="static/css/slick.css">
        <link rel="stylesheet" href="static/css/default.css">
        <link rel="stylesheet" href="static/css/style.css">
        <link rel="stylesheet" href="static/css/responsive.css">
        <link rel="stylesheet" href="static/css/mystyle.css">
    </head>
    <body>

        <!-- preloader  -->
        <div id="preloader">
            <div id="ctn-preloader" class="ctn-preloader">
                <div class="animation-preloader">
                    <div class="spinner"></div>
                    <div class="txt-loading">
                        <span data-text-preloader="Y" class="letters-loading">Y</span>
                        <span data-text-preloader="D" class="letters-loading">D</span>
                        <span data-text-preloader="Z" class="letters-loading">Z</span>
                        <span data-text-preloader="K" class="letters-loading">K</span>
                    </div>
                </div>
                <div class="loader">
                    <div class="row">
                        <div class="col-3 loader-section section-left">
                            <div class="bg"></div>
                        </div>
                        <div class="col-3 loader-section section-left">
                            <div class="bg"></div>
                        </div>
                        <div class="col-3 loader-section section-right">
                            <div class="bg"></div>
                        </div>
                        <div class="col-3 loader-section section-right">
                            <div class="bg"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- preloader end -->

		<!-- Scroll-top -->
        <button class="scroll-top scroll-to-target" data-target="html">
            <i class="fas fa-angle-up"></i>
        </button>
        <!-- Scroll-top-end-->

        <!-- header-area -->
        <header class="header-style-two">

            <!-- menu-area -->
            <div id="sticky-header" class="main-header menu-area">
                <div class="custom-container-two">
                    <div class="row">
                        <div class="col-12">
                            <div class="mobile-nav-toggler"><i class="fas fa-bars"></i></div>
                            <div class="menu-wrap">
                                <nav class="menu-nav show">
                                    <div class="logo">
                                        <a href="#"><img src="static/img/logo/Logo.png" alt="Logo"></a>
                                    </div>
                                    <div class="text-with-spacing">
                                        <p>云端智控</p>
                                        <p>新型配电网监测与故障处理技术领航者</p>                                        </p>
                                    </div>
                                    <div class="navbar-wrap main-menu d-none d-lg-flex">
                                        <ul class="navigation">
                                            <li><a href="/index">主页</a></li>
                                            <li><a href="#about">关于</a></li>
                                            <li><a href="#about">加入我们</a></li>
                                        </ul>
                                    </div>
                                    <div class="header-action d-none d-md-block">
                                        <ul>
                                            <li><a href="#"><i class="flaticon-two-arrows"></i></a></li>
                                            <li><a href="#"><i class="flaticon-heart"></i></a></li>
                                            <li class="header-shop-cart"><a href="#"><i class="flaticon-shopping-bag"></i></a>
                                                {% if cid == None %}
                                                    <span class="cart-total-price">未登录</span>
                                                    <ul class="minicart">
                                                        <li>
                                                            <div class="total-price">
                                                                <span class="f-left">请先登录！</span>
                                                                <span class="f-right"></span>
                                                            </div>
                                                        </li>
                                                        <li>
                                                            <div class="checkout-link">                                          
                                                                <a class="red-color" href="/">登录</a>
                                                            </div>
                                                        </li>
                                                    </ul>
                                                {% else %}
                                                    <span class="cart-total-price">{{ cname }}</span>
                                                    <ul class="minicart">
                                                        <li>
                                                            <div class="total-price">
                                                                <span class="f-left">您好! {{ cname }}</span>
                                                                <span class="f-right">您的编号是: {{ cid }}</span>
                                                            </div>
                                                        </li>
                                                        <li>
                                                            <div class="checkout-link">
                                                                <a class="red-color" href="/logout">退出登录</a>
                                                            </div>
                                                        </li>
                                                    </ul>
                                                {% endif %}
                                            </li>
                                        </ul>
                                    </div>
                                </nav>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </header>
            <!-- menu-area-end -->

            <div class="main-area" style="background-color: rgb(26, 128, 212);">
                <div class="main-title">配电网故障诊断系统
                    <div class="dropdown-content">
                        <a href="/show_realtime_diagnostics">实时诊断</a>
                        <a href="/show_detect_online">在线监测</a>
                        <a href="/show_fault_history">故障诊断历史</a>
                        <a href="/show_protect_status">保护状态</a>
                        <a href="/show_recorder_data">录波波形</a>
                    </div>
                </div>
            </div>
            <div>
                <script>
                    setInterval(function() {
                        var datetimeElements = document.querySelectorAll('.datetime');
                        var currentTime = new Date().toLocaleString();
                        datetimeElements.forEach(function(element) {
                            element.innerHTML = currentTime;
                        });
                    }, 1000);
                </script>
                <div id="fault-history" class="content-section">
                <h2 class="section-title">在线监测</h2>
                        <table>
                            <thead>
                                <tr>
                                    <th>编号</th><th>辖区</th><th>线路</th><th>时间</th><th>操作</th>
                                </tr>
                            </thead>
                            <!-- Table rows with 故障诊断历史 data -->
                        <tbody>
                            <tr>
                                <td>1</td>
                                <td>临桂</td>
                                <td>临桂庙塔山线</td>
                                <td><div class="datetime"></td>
                                <td><a href="/show_fault_feature" class="action-link">查看</a></td>
                            </tr>
                            <tr>
                                <td>2</td>
                                <td>临桂</td>
                                <td>临桂庙塔山线</td>
                                <td><div class="datetime"></td>
                                <td><a href="/show_fault_feature" class="a/ion-link">查看</a></td>
                            </tr>
                            <!-- Additional rows... -->
                        </tbody>
                    </table>
                </div>
            </div>
        <!-- footer-area -->
        <footer class="footer-area" id="about">
            <div class="footer-top pt-65 pb-25">
                <div class="container">
                    <div class="row justify-content-between">
                        <div class="col-lg-3 col-md-6">
                            <div class="footer-widget mb-50">
                                <div class="fw-title mb-35">
                                    <h5>关于我们</h5>
                                </div>
                                <div class="fw-link">
                                    <ul>
                                        <li><a href="#">“云端智控”</a></li>
                                        <li><a href="#">全覆盖新型配电系统</a></li>
                                        <li><a href="#">在线监测与故障处理解决方案</a></li>
                                        <li><a href="#">  </a></li>
                                    </ul>
                                </div>
                                <div class="footer-social">
                                    <ul>
                                        <li><a href="#"><i class="fab fa-facebook-f"></i></a></li>
                                        <li><a href="#"><i class="fab fa-instagram"></i></a></li>
                                        <li><a href="#"><i class="fab fa-twitter"></i></a></li>
                                        <li><a href="#"><i class="fab fa-pinterest-p"></i></a></li>
                                        <li><a href="#"><i class="fab fa-linkedin-in"></i></a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="col-xl-2 col-lg-3 col-sm-6">
                            <div class="footer-widget mb-50">
                                <div class="fw-title mb-35">
                                    <h5>版权所有</h5>
                                </div>
                                <div class="footer-contact">
                                    <ul>
                                        <li><a href="https://www.bjtu.edu.cn/" target="_blank">北京交通大学</a></li>
                                    </ul>
                                </div>
                                <div class="fw-link">
                                    <ul>
                                        <li><a href="#">云端智控团队</a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="col-xl-2 col-lg-3 col-sm-6">
                            <div class="footer-widget mb-50">
                                <div class="fw-title mb-35">
                                    <h5>联系方式</h5>
                                </div>
                                <div class="fw-link">
                                    <ul>
                                        <li><a href="#">吕国梁</a></li>
                                        <li><a href="#">21231210@bjtu.edu.cn</a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="col-xl-2 col-lg-3 col-sm-6">
                            <div class="footer-widget mb-50">
                                <div class="fw-title mb-35">
                                    <h5>合作伙伴</h5>
                                </div>
                                <div class="footer-contact">
                                    <ul>
                                        <li><a href="http://www.bj.sgcc.com.cn/" target="_blank">国网北京市电力公司</a></li>
                                        <li><a href="http://www.hyliton.com/" target="_blank">北京恒源利通电力技术有限公司</a></li>
                                        <li><a href="http://www.jibei.sgcc.com.cn/html/main/index.html" target="_blank">国网冀北电力有限公司电力科学研究院</a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="copyright-wrap copyright-style-two">
                <div class="container">
                    <div class="row align-items-center">
                        <div class="col-lg-12 col-md-12">
                            <div class="copyright-text" style="text-align: center">
                                <p>Supported by BJTU</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </footer>
        <!-- footer-area-end -->



		<!-- JS here -->
        <script src="static/js/vendor/jquery-3.5.0.min.js"></script>
        <script src="static/js/popper.min.js"></script>
        <script src="static/js/bootstrap.min.js"></script>
        <script src="static/js/isotope.pkgd.min.js"></script>
        <script src="static/js/imagesloaded.pkgd.min.js"></script>
        <script src="static/js/jquery.magnific-popup.min.js"></script>
        <script src="static/js/owl.carousel.min.js"></script>
        <script src="static/js/jquery.odometer.min.js"></script>
        <script src="static/js/jquery.countdown.min.js"></script>
        <script src="static/js/jquery.appear.js"></script>
        <script src="static/js/slick.min.js"></script>
        <script src="static/js/ajax-form.js"></script>
        <script src="static/js/wow.min.js"></script>
        <script src="static/js/aos.js"></script>
        <script src="static/js/plugins.js"></script>
        <script src="static/js/main.js"></script>
    </body>
</html>
